Skip to main content
Version: 5.2.0

getDelegatedResourceV2

Query the resources that an account delegates to another account under the V2 interface. (v5.1.0 new interface)

Usage​

tronWeb.trx.getDelegatedResourceV2(fromAddress, toAddress, options)

Parameters​

ParametersParameter DescriptionData Type
fromAddressresource from account address (base58 or hex)String
toAddressresource to account address (base58 or hex)String
optionsoptional fieldsObject

Return​

Object

Example​

>const delegationInfo = await tronWeb.trx.getDelegatedResourceV2('fromAddress', 'toAddress')
> {
"delegatedResource": [
{
"from": "fromAddress",
"to": "toAddress",
"frozen_balance_for_bandwidth": 10000000
}
]
}